package com.carkeeper.service.serviceFallback;

import com.carkeeper.dto.StoreDTO;
import com.carkeeper.service.StoreFeign;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class StoreFallbackFactory implements FallbackFactory<StoreFeign> {
    @Override
    public StoreFeign create(Throwable throwable) {
        return new StoreFeign() {
            @Override
            public StoreDTO queryStoreById(Long id) {
                return null;
            }
        };
    }
}
